<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : init_context.xsl
    Created on : 7. Mai 2008, 14:47
    Author     : philipp.maschke
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:variable name="time">
        <xsl:value-of  select="document('http://xobjex.com/cgi-bin/date.pl')/date/utc/@stamp"/>
    </xsl:variable>

    <xsl:template match="/">
    <data>
	<metadata>
		<startTime />
		<status>initialized</status>
		<owner />
		<firstOwner />
                <endTime />
                <isDelegated />
                <reviewRequested />
		<actions>
			<action>
				<name>init</name>
				<time><xsl:copy-of select="$time" /></time>
				<user>system</user>
			</action>
		</actions>
	</metadata>
    </data>
</xsl:template>

</xsl:stylesheet>
